/*
 * XML Type:  Tax1099TransactionResponse
 * Namespace: http://ofx.net/types/2003/04
 * Java type: net.ofx.types.x2003.x04.Tax1099TransactionResponse
 *
 * Automatically generated - do not modify.
 */
package net.ofx.types.x2003.x04.impl;
/**
 * An XML Tax1099TransactionResponse(@http://ofx.net/types/2003/04).
 *
 * This is a complex type.
 */
public class Tax1099TransactionResponseImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements net.ofx.types.x2003.x04.Tax1099TransactionResponse
{
    
    public Tax1099TransactionResponseImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName TRNUID$0 = 
        new javax.xml.namespace.QName("", "TRNUID");
    private static final javax.xml.namespace.QName STATUS$2 = 
        new javax.xml.namespace.QName("", "STATUS");
    private static final javax.xml.namespace.QName CLTCOOKIE$4 = 
        new javax.xml.namespace.QName("", "CLTCOOKIE");
    private static final javax.xml.namespace.QName TAX1099RS$6 = 
        new javax.xml.namespace.QName("", "TAX1099RS");
    
    
    /**
     * Gets the "TRNUID" element
     */
    public java.lang.String getTRNUID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(TRNUID$0, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "TRNUID" element
     */
    public net.ofx.types.x2003.x04.GloballyUniqueUserIdType xgetTRNUID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.GloballyUniqueUserIdType target = null;
            target = (net.ofx.types.x2003.x04.GloballyUniqueUserIdType)get_store().find_element_user(TRNUID$0, 0);
            return target;
        }
    }
    
    /**
     * Sets the "TRNUID" element
     */
    public void setTRNUID(java.lang.String trnuid)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(TRNUID$0, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(TRNUID$0);
            }
            target.setStringValue(trnuid);
        }
    }
    
    /**
     * Sets (as xml) the "TRNUID" element
     */
    public void xsetTRNUID(net.ofx.types.x2003.x04.GloballyUniqueUserIdType trnuid)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.GloballyUniqueUserIdType target = null;
            target = (net.ofx.types.x2003.x04.GloballyUniqueUserIdType)get_store().find_element_user(TRNUID$0, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.GloballyUniqueUserIdType)get_store().add_element_user(TRNUID$0);
            }
            target.set(trnuid);
        }
    }
    
    /**
     * Gets the "STATUS" element
     */
    public net.ofx.types.x2003.x04.Status getSTATUS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.Status target = null;
            target = (net.ofx.types.x2003.x04.Status)get_store().find_element_user(STATUS$2, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "STATUS" element
     */
    public void setSTATUS(net.ofx.types.x2003.x04.Status status)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.Status target = null;
            target = (net.ofx.types.x2003.x04.Status)get_store().find_element_user(STATUS$2, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.Status)get_store().add_element_user(STATUS$2);
            }
            target.set(status);
        }
    }
    
    /**
     * Appends and returns a new empty "STATUS" element
     */
    public net.ofx.types.x2003.x04.Status addNewSTATUS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.Status target = null;
            target = (net.ofx.types.x2003.x04.Status)get_store().add_element_user(STATUS$2);
            return target;
        }
    }
    
    /**
     * Gets the "CLTCOOKIE" element
     */
    public java.lang.String getCLTCOOKIE()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CLTCOOKIE$4, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "CLTCOOKIE" element
     */
    public net.ofx.types.x2003.x04.IdType xgetCLTCOOKIE()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.IdType target = null;
            target = (net.ofx.types.x2003.x04.IdType)get_store().find_element_user(CLTCOOKIE$4, 0);
            return target;
        }
    }
    
    /**
     * True if has "CLTCOOKIE" element
     */
    public boolean isSetCLTCOOKIE()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(CLTCOOKIE$4) != 0;
        }
    }
    
    /**
     * Sets the "CLTCOOKIE" element
     */
    public void setCLTCOOKIE(java.lang.String cltcookie)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CLTCOOKIE$4, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(CLTCOOKIE$4);
            }
            target.setStringValue(cltcookie);
        }
    }
    
    /**
     * Sets (as xml) the "CLTCOOKIE" element
     */
    public void xsetCLTCOOKIE(net.ofx.types.x2003.x04.IdType cltcookie)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.IdType target = null;
            target = (net.ofx.types.x2003.x04.IdType)get_store().find_element_user(CLTCOOKIE$4, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.IdType)get_store().add_element_user(CLTCOOKIE$4);
            }
            target.set(cltcookie);
        }
    }
    
    /**
     * Unsets the "CLTCOOKIE" element
     */
    public void unsetCLTCOOKIE()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(CLTCOOKIE$4, 0);
        }
    }
    
    /**
     * Gets the "TAX1099RS" element
     */
    public net.ofx.types.x2003.x04.Tax1099Response getTAX1099RS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.Tax1099Response target = null;
            target = (net.ofx.types.x2003.x04.Tax1099Response)get_store().find_element_user(TAX1099RS$6, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "TAX1099RS" element
     */
    public boolean isSetTAX1099RS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(TAX1099RS$6) != 0;
        }
    }
    
    /**
     * Sets the "TAX1099RS" element
     */
    public void setTAX1099RS(net.ofx.types.x2003.x04.Tax1099Response tax1099RS)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.Tax1099Response target = null;
            target = (net.ofx.types.x2003.x04.Tax1099Response)get_store().find_element_user(TAX1099RS$6, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.Tax1099Response)get_store().add_element_user(TAX1099RS$6);
            }
            target.set(tax1099RS);
        }
    }
    
    /**
     * Appends and returns a new empty "TAX1099RS" element
     */
    public net.ofx.types.x2003.x04.Tax1099Response addNewTAX1099RS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.Tax1099Response target = null;
            target = (net.ofx.types.x2003.x04.Tax1099Response)get_store().add_element_user(TAX1099RS$6);
            return target;
        }
    }
    
    /**
     * Unsets the "TAX1099RS" element
     */
    public void unsetTAX1099RS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(TAX1099RS$6, 0);
        }
    }
}
